 #!/bin/bash
 echo "......................."
 echo "change the mirrors from China:"
 echo "......................."
 sudo pacman-mirrors -i -c China -m rank
 echo "update for the first time:"
 sudo pacman -Syu
 echo "install yay:"
 sudo pacman -S yay --noconfirm
 echo "install the necessary packages:"
 yay -S base-devel --noconfirm
 echo "......................."
 echo "install fcitx5&rime:"
 echo "......................."
 yay -S fcitx5-im --noconfirm
 yay -S fcitx5-rime --noconfirm
 yay -S rime-cloverpinyin --noconfirm
 yay -S fcitx5-material-color
 echo "......................."
 echo "run nano ~/.pam_environment & write: export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=”@im=fcitx”"
 sudo echo -e "export GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS="@im=fcitx" ">> ~/.xprofile 
 echo "......................."
 echo "run nano ~/.config/fcitx5/conf/classicui.conf & write: export #垂直候选列表\nVertical Candidate List=False\n#按屏幕 DPI 使用\nPerScreenDPI=True\n# Font (设置成你喜欢的字体)
Font="思源黑体 CN Medium 13"\n#主题\nTheme=Material-Color-DeepPurple" 
 echo "......................."
 sudo echo -e " #垂直候选列表\nVertical Candidate List=False\n#按屏幕 DPI 使用\nPerScreenDPI=True\n# Font (设置成你喜欢的字体)\nFont="思源黑体 CN Medium 13"\n#主题\nTheme=Material-Color-DeepPurple">> ~/.config/fcitx5/conf/classicui.conf 
 echo "install vscode:"
 echo "......................."
 yay -S visual-studio-code-bin --noconfirm
 echo "......................."
 echo "install pip3:"
 echo "......................."
 yay -S python2-pip python-pip --noconfirm
 echo "......................."
 echo "install netease-cloud-music:"
 echo "......................."
 yay -S netease-cloud-music --noconfirm
 echo "......................."
 echo "install wps-office:"
 echo "......................."
 yay -S wps-office
 echo "......................."
 echo "字体相关包:"
 yay -S ttf-ms-fonts wps-office-fonts ttf-wps-fonts 
 echo "......................."
 echo "install android-studio-beta:"
 echo "......................."
 yay -S android-studio-beta --noconfirm
 echo "......................."
 echo "install typora:"
 echo "......................."
 yay -S typora --noconfirm
 yay -S pandoc --noconfirm
 yay -S obsidian-appimage --noconfirm
 echo "......................."
 echo "install min浏览器:"
 echo "......................."
 sudo pacman -S min
 echo "......................."
 echo "install qqmusic\gimp\inkspace\itksnap\wechat\krita\kdenlive  :"
 echo "......................."
 yay -S qqmusic-appimage 
 yay -S gimp 
 yay -S inkspace 
 yay -S itk-snap
 yay -S wechat-uos --noconfirm
 yay krita
 yay -S kdenlive --noconfirm
 yay -S baidunetdisk-bin --noconfirm
 yay -S anki
 yay moonplayer
 # yay -S geogebra
 yay -S sabaki --noconfirm
 yay -S icalingua 
 echo "......................."
 echo "install 0.a.d:"
 echo "......................."
 sudo pacman -S 0ad
 echo "......................."
 echo "install pip3相关包:"
 echo "......................."
 pip3 install pqi
 pqi ls
 pqi use tuna
 pip3 install you-get
 echo "......................."
 echo "install docker:"
 echo "......................."
 sudo pacman -S docker --noconfirm
 sudo systemctl enable docker
 sudo gpasswd -a $USER docker
 sudo systemctl start docker
 echo "install rsshub-docker at http://127.0.0.1:1200:"
 echo "......................."
 sudo docker pull  diygod/rsshub
 sudo docker run -d --name rsshub -p 1200:1200 -e CACHE_EXPIRE=3600 -e DEBUG_INFO=false --restart=always diygod/rsshub
 echo "......................."

 echo "Download flutter........."
 echo "......................."
 wget -P /home/zyh/dev/ https://storage.flutter-io.cn/flutter_infra_release/releases/stable/linux/flutter_linux_2.2.3-stable.tar.xz
 cd ..
 cd dev
 tar xf flutter_linux_2.2.3-stable.tar.xz
 sudo echo -e "export PATH="$PATH:/home/zyh/dev/flutter/bin" ">> ~/.bashrc
 source ~/.bashrc
 yay -S jdk11-openjdk --noconfirm
 yay -S clang
 yay -S cmake
 yay -S ninja
 flutter config --enable-linux-desktop
 flutter doctor
 echo "......................."
 echo “Download Appimage apps”
 echo "......................."
 wget -P /home/zyh/Applications/ https://github.com/cuiocean/ZY-Player/releases/download/v2.8.5/ZY-Player-2.8.5.AppImage &&
 wget -P /home/zyh/Applications/ https://github.com/yang991178/fluent-reader/releases/download/v1.0.2/Fluent.Reader.1.0.2.AppImage

 echo "Config ends,now go and use your manjaro!!!"
 echo "......................."

